home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 125
/
Freelog_MarsAvril2015_No125.iso
/
Musique
/
Quod Libet
/
quodlibet-3.3.0-installer.exe
/
bin
/
quodlibet
/
mmkeys
/
_base.pyc
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2014-12-31
|
2KB
|
47 lines
# Source Generated with Decompyle++
# File: in.pyc (Python 2.7)
class MMKeysImportError(ImportError):
pass
class MMKeysAction(object):
PLAY = 'play'
STOP = 'stop'
PAUSE = 'pause'
PREV = 'prev'
NEXT = 'next'
PLAYPAUSE = 'playpause'
class MMKeysBackend(object):
def __init_(self, name, callback):
'''Callback will be called in the main thread and gets
passed an MMKeysAction. `name` should be the application name.
'''
raise NotImplementedError
def is_active(cls):
'''Should return if the backend should be used'''
return True
is_active = classmethod(is_active)
def grab(self):
'''Should tell the backend that the application was active
(e.g. the main window got focused)
'''
pass
def cancel(self):
'''After cancel returns the callback will no longer be called.
Can be called multiple times.
'''
raise NotImplementedError